<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>layui在线调试</title>
    <link rel="stylesheet" href="../../layui/css/layui.css" media="all">
    <style>
        body{background: white;width: 100%}
        .color{ color: #1E9FFF!important;font-weight: bold}
        .select input{height: 35px!important;width: 200px}
        thead td{background: #3c8dbc!important;color: white}
    </style>
</head>
<body>
<!--<span class="layui-breadcrumb" style="margin-left: 10px;margin-top: 6px;display: block">-->
<!--<span class="color">学籍信息&nbsp;-&nbsp;单一查询</span>-->
<!--</span>-->
<fieldset class="layui-elem-field site-demo-button" style="margin-top: 10px;width: 100%">
    <legend style="font-size: 14px"><span class="color">执行计划统计-开课单位</span></legend>
    <div class="layui-form select">
        <table class="layui-table">
            <tr>
                <td style="border: none">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width:90px;">选择学年</label>
                        <div class="layui-input-inline" style="height: 30px">
                            <select name="quiz">
                                <option value="">请选择学年</option>
                                <option value="1">2014</option>
                                <option value="2">2015</option>
                                <option value="3">2016</option>
                            </select>
                        </div>
                    </div>
                </td>
                <td style="border: none">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width:90px;">选择学期</label>
                        <div class="layui-input-inline" style="height: 30px">
                            <select name="quiz">
                                <option value="">请选择学期</option>
                                <option value="1">第一学期</option>
                                <option value="2">第二学期</option>
                            </select>
                        </div>
                    </div>
                </td>
                <td style="border: none">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width:90px;">单位</label>
                        <div class="layui-input-inline" style="height: 30px">
                            <select name="quiz">
                                <option value="">请选择</option>
                                <option value="1">西安欧亚学院</option>
                                <option value="2">学生发展处</option>
                                <option value="3">图文信息中心</option>
                                <option value="4">信息工程学院</option>
                                <option value="5">人文教育学院</option>
                            </select>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td style="border: none">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width:90px;">专业</label>
                        <div class="layui-input-inline" style="height: 30px">
                            <select name="quiz">
                                <option value="">请选择</option>
                                <option value="1">学前教育</option>
                                <option value="2">国际基础教育</option>
                                <option value="3">工程管理</option>
                                <option value="4">软件工程</option>
                                <option value="5">电子信息工程</option>
                            </select>
                        </div>
                    </div>
                </td>
                <td style="border: none">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width:90px;">年级</label>
                        <div class="layui-input-inline" style="height: 30px">
                            <select name="quiz">
                                <option value="">请选择</option>
                                <option value="1">1</option>
                                <option value="2">2</option>
                                <option value="3">3</option>
                                <option value="4">4</option>
                            </select>
                        </div>
                    </div>
                </td>
                <td colspan="2" style="border: none">

                </td>
            </tr>
        </table>
    </div>
</fieldset>
<button class="layui-btn layui-btn-xs layui-btn-normal" style="margin-left: 10px">立即查询</button>
<button class="layui-btn layui-btn-xs layui-btn-normal" style="margin-left: 10px">导出Excel</button>
<table class="layui-table" lay-size="sm">
    <thead>
    <td>序号</td>
    <td>学级</td>
    <td>	科目代码</td>
    <td>	科目名称</td>
    <td>必修/选修</td>
    <td>学分</td>
    <td>周学时</td>
    <td>总学时</td>
    <td>开课单位</td>
    <td>开课年级</td>
    <td>学院</td>
    <td>专业/方向</td>
    <td>开课班级数</td>
    <td>人数</td>
    <td>备注</td>
    </thead>
    <tr>
        <td>01</td>
        <td>2017</td>
        <td>	1910</td>
        <td>	军事技能训练</td>
        <td>必修</td>
        <td>2</td>
        <td>56</td>
        <td>112</td>
        <td>	(010202)学生发展处研发中心</td>
        <td>1</td>
        <td>	(0121)文化传媒学院</td>
        <td>	(01215001)新闻学</td>
        <td>1</td>
        <td>62</td>
        <td></td>
    </tr>
    <tr>
        <td>01</td>
        <td>2017</td>
        <td>	1910</td>
        <td>	军事技能训练</td>
        <td>必修</td>
        <td>2</td>
        <td>56</td>
        <td>112</td>
        <td>	(010202)学生发展处研发中心</td>
        <td>1</td>
        <td>	(0121)文化传媒学院</td>
        <td>		(01215003)网络与新媒体</td>
        <td>1</td>
        <td>62</td>
        <td></td>
    </tr>
    <tr>
        <td>01</td>
        <td>2017</td>
        <td>	1910</td>
        <td>	军事技能训练</td>
        <td>必修</td>
        <td>2</td>
        <td>56</td>
        <td>112</td>
        <td>	(010202)学生发展处研发中心</td>
        <td>1</td>
        <td>		(0130)信息工程学院</td>
        <td>			(01305001)电子信息工程</td>
        <td>1</td>
        <td>62</td>
        <td></td>
    </tr>
    <tr>
        <td>01</td>
        <td>2017</td>
        <td>	1910</td>
        <td>	军事技能训练</td>
        <td>必修</td>
        <td>2</td>
        <td>56</td>
        <td>112</td>
        <td>	(010202)学生发展处研发中心</td>
        <td>1</td>
        <td>		(0130)信息工程学院</td>
        <td>				(0130500305)中兴通讯中法国际人才培养班（双学位）</td>
        <td>1</td>
        <td>62</td>
        <td></td>
    </tr>
    <tr>
        <td>01</td>
        <td>2017</td>
        <td>	1910</td>
        <td>	军事技能训练</td>
        <td>必修</td>
        <td>2</td>
        <td>56</td>
        <td>112</td>
        <td>	(010202)学生发展处研发中心</td>
        <td>1</td>
        <td>		(0130)信息工程学院</td>
        <td>			(0130500402)软件工程（普通班）</td>
        <td>1</td>
        <td>62</td>
        <td></td>
    </tr>
</table>
<script src="../../layui/layui.js"></script>
<script src="../../layui/jquery-1.12.4.min.js"></script>
<script>
    layui.use('element',"laydate", function(){
        var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块
        var laydate = layui.laydate;

        //常规用法
        laydate.render({
            elem: '#test1'
        });
        //监听导航点击
        element.on('nav(demo)', function(elem){
            //console.log(elem)
            layer.msg(elem.text());
        });
    });
</script>
<script>
    layui.use(['form', 'layedit', 'laydate'], function(){
        var form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,laydate = layui.laydate;

        //日期
        laydate.render({
            elem: '#date'
        });
        laydate.render({
            elem: '#date1'
        });

        //创建一个编辑器
        var editIndex = layedit.build('LAY_demo_editor');

        //自定义验证规则
        form.verify({
            title: function(value){
                if(value.length < 5){
                    return '标题至少得5个字符啊';
                }
            }
            ,pass: [/(.+){6,12}$/, '密码必须6到12位']
            ,content: function(value){
                layedit.sync(editIndex);
            }
        });

        //监听指定开关
        form.on('switch(switchTest)', function(data){
            layer.msg('开关checked：'+ (this.checked ? 'true' : 'false'), {
                offset: '6px'
            });
            layer.tips('温馨提示：请注意开关状态的文字可以随意定义，而不仅仅是ON|OFF', data.othis)
        });

        //监听提交
        form.on('submit(demo1)', function(data){
            layer.alert(JSON.stringify(data.field), {
                title: '最终的提交信息'
            })
            return false;
        });


    });
</script>
</body>
</html>
